package com.bk.controller.user;

import com.bk.dto.InnovationDTO;
import com.bk.dto.InnovationPageQueryDTO;
import com.bk.result.PageResult;
import com.bk.result.Result;
import com.bk.service.InnovationService;
import com.bk.service.PersonalCenterService;
import com.bk.vo.InnovationDetailsVO;
import com.bk.vo.InnovationVO;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

/**
 * 个人中心
 */
@RestController
@RequestMapping("/user/personalCenter")
@Slf4j
@Api(tags = "个人中心相关接口")
public class PersonalCenterController {
    @Autowired
    private PersonalCenterService personalCenterService;
    /**
     * 通知分页查询
     * @return
     */
    @GetMapping("/messagePage")
    @ApiOperation("通知分页查询")
    public Result<PageResult> messagePage(Integer page,Integer pageSize)
    {
        PageResult pageResult = personalCenterService.messagePage(page, pageSize);
        return Result.success(pageResult);
    }

    /**
     * 浏览记录分页查询
     * @return
     */
    @GetMapping("/historyPage")
    @ApiOperation("浏览记录分页查询")
    public Result<PageResult> historyPage(Integer page,Integer pageSize)
    {
        PageResult result  = personalCenterService.historyPage(page,pageSize);

        return Result.success(result);
    }

    /**
     * 收藏夹分页查询
     * @return
     */
    @GetMapping("/preservePage")
    @ApiOperation("收藏夹分页查询")
    public Result<PageResult> preservePage()
    {
        return Result.success();
    }
    /**
     * 查看已发布的文章
     */
    @GetMapping("/innovationPage")
    @ApiOperation("查看已发布的文章")
    public Result<PageResult> innovationPage()
    {
        return Result.success();
    }


}
